package cn.edu.xjtu.android.emoji_warfare_android.game;

import cn.edu.xjtu.android.emoji_warfare_android.engine.Layer;
import cn.edu.xjtu.android.emoji_warfare_android.engine.worker.RenderWorker;

/**
 * LayerManager<br>
 * 图层管理器，仅仅是为了取代Layer数组、LayerArrayList和LayerHashMap而出现的
 * 
 * @author bill
 *
 */
public class LayerManager {
    public final Layer Widgets;
    public final Layer Item;
    public final Layer Player;
    public final Layer Enemy;
    public final Layer PlayerBullet;
    public final Layer EnemyBullet;
    public final Layer Background;

    public LayerManager(RenderWorker render) {
        Enemy = render.newLayer(0);
        PlayerBullet = render.newLayer(1);
        EnemyBullet = render.newLayer(2);
        Player = render.newLayer(3);
        Item = render.newLayer(4);
        Widgets = render.newLayer(5);
        Background = render.newLayer(-1);
    }
}
